﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="content_search_result.aspx.cs" Inherits="TRPOP.CMS.Web.Admin.content_search_result" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>内容管理-<%=base.m_strBaseAdminPageName%></title>
    <script src="../../js/utils.js" type="text/javascript"></script>
    <script src="../../js/jquery.js" type="text/javascript"></script>
    <script src="../js/jquery.form.js" type="text/javascript"></script>
    <script src="../tree/xmenu.js" type="text/javascript"></script>
    <link href="../tree/xmenu.css" rel="stylesheet" type="text/css" />
    <script src="../js/content_search_result.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
  
    <!--导航-->
    <div id="page_navigator" >
        当前位置：系统管理 -> 发布管理 -> 内容管理 -> 搜索结果</div>
    <!--菜单-->  
    <div id="menudata"></div>
    <!--列表-->
    <table class="table_search" cellpadding="0" cellspacing="2" width="100%" border="0">
        <tr>
            <td height="20" nowrap="nowrap"  width="50">
                &nbsp;&nbsp;
            </td>
            <td nowrap="nowrap" width="150">
                <cms:DropDownList runat="server" ID="ddlPublishStatus" CssClass="hide"  />&nbsp;&nbsp;
            </td>
            <td  align="right" nowrap="nowrap" width="150">
                按发布日期查询:
            </td>
            <td  align="left" nowrap="nowrap" width="200">
                <cms:TextBox runat="server" ID="txtPubTime" onclick="javascript:return new Calendar.display(this.id,event);"
                    Width="100px" />
                <input name="Go" class="button_style" type="button" value="执行" onclick="doing('date_search')"/>
            </td>
            <td  align="right" nowrap="nowrap" width="150">
                关键字查询:
            </td>
            <td  nowrap="nowrap" width="200">
                <cms:TextBox runat="server" ID="SearchKeywords" Width="80" MaxLength="100" />
                <input name="Go" class="button_style" type="button" value="执行" onclick="doing('keyword_search')"/>
            </td>
            <td>&nbsp;</td>
            <td class="hide">
                <img src="../../App_Themes/<%=TRPOP.CMS.Model.SystemInfoHelper.getSystemInfo().CMSThemes%>/images/search.gif" border="0" style="cursor: hand"
                    title="高级搜索" onclick="doing('search_pro')" /><span title="高级搜索" onclick="doing('search_pro')"
                        style="cursor: hand">高级搜索</span>
            </td>
        </tr>
    </table>
    <!--列表-->
    <table class="table_list">
        <tbody>
            <tr class="tr_title">
                <th width="15">
                </th>
                <th>
                    ID
                </th>
                <th>
                    排序
                </th>
                <cms:Repeater runat="server" ID="repTitleList">
                  <ItemTemplate>
                  <th>
                    <%#Eval("Name") %>
                </th>
                </ItemTemplate>
                </cms:Repeater>
                <th>
                    编辑
                </th>
                <th>
                    发布日期
                </th>
                <th>
                    发布状态
                </th>
                <th>
                    操作
                </th>
                <th>
                    T
                </th>
            </tr>
            <cms:Repeater ID="rptList" runat="server">
                <ItemTemplate>
                    <tr class="tr_listitem" onmouseout="this.className='tr_mouseout'" onmouseover="this.className='tr_mouseover'">
                        <td>
                            <input type="checkbox" name="delid" value="<%# Eval("ContentId")%>" />
                        </td>
                        <td>
                            <%# Eval("ContentId")%>
                        </td>
                        <td>
                            <%# Eval("DisplayOrder")%>
                        </td>
                        <%#BindContentTableData(Eval("ExtendTableName"), Eval("ExtendId"), Eval("ContentId"), Eval("PubStatus"), Eval("Type"), Eval("TopWeight"), Eval("EliteWeight"))%>
                        
                        <td class="align_c">
                            <%#GetAdminNameById(Convert.ToInt32(Eval("UpdateUserId")))%>
                        </td>
                        <td class="align_c">
                            <%# Eval("PubTime")%>
                        </td>
                        <td class="align_c">
                            <%#Convert.ToInt32(Eval("PubStatus")) == (int)TRPOP.Common.PubStatus.EnumElement.UnPublish ? TRPOP.Common.PubStatus.GetValue(Convert.ToInt32(Eval("PubStatus"))) : "<span class=\"Red\">" + TRPOP.Common.PubStatus.GetValue(Convert.ToInt32(Eval("PubStatus"))) + " </span>"%>
                        </td>
                        <td class="align_c">         
                                <%#Convert.ToInt32(Eval("Type")) == (int)TRPOP.Common.LinkType.EnumElement.RealLink ? Convert.ToInt32(Eval("PubStatus")) == (int)TRPOP.Common.PubStatus.EnumElement.UnPublish ? m_NodeInfo.ContentPubTypeId == (int)TRPOP.Common.ContentPubType.EnumElement.NotOutPub ? "" : "<a href=\"admin_publish.aspx?ac=PubContent&contentid=" + Eval("ContentId") + "&nodeid=" + Eval("NodeId") + "\">发布</a>" : "<a id=\"URL_" + Eval("ContentId") + "\"  href=\"" + Eval("Url") + "\" target=\"_bank\">浏览<a>   <a href=\"admin_publish.aspx?ac=RePubContent&contentid=" + Eval("ContentId") + "\">更新</a>" : ""%>
                                <%#Convert.ToInt32(Eval("Type")) == (int)TRPOP.Common.LinkType.EnumElement.RealLink ? " <a class=\"hide\">评论</a>  <a href=\"javascript:void(0);\" onclick=\"javascript:doing('editdoc'," + Eval("ContentId") + ");\"> 编辑</a>" : ""%>
                                  <%#Convert.ToInt32(Eval("Type")) == (int)TRPOP.Common.LinkType.EnumElement.VirtualLink ? Convert.ToInt32(Eval("PubStatus")) == (int)TRPOP.Common.PubStatus.EnumElement.UnPublish ? m_NodeInfo.ContentPubTypeId == (int)TRPOP.Common.ContentPubType.EnumElement.NotOutPub ? "" : "<a href=\"admin_publish.aspx?ac=PubContent&contentid=" + Eval("ContentId") + "&nodeid=" + Eval("NodeId") + "\">发布</a>" : "<a id=\"URL_" + Eval("ContentId") + "\" href=\"" + Eval("Url") + "\" target=\"_bank\">浏览<a>  <a href=\"admin_publish.aspx?ac=RePubContent&contentid=" + Eval("ContentId") + "\">更新</a>" : ""%>
                                <%#Convert.ToInt32(Eval("Type")) == (int)(int)TRPOP.Common.LinkType.EnumElement.IndexLink ? Convert.ToInt32(Eval("PubStatus")) == (int)TRPOP.Common.PubStatus.EnumElement.UnPublish ? m_NodeInfo.ContentPubTypeId == (int)TRPOP.Common.ContentPubType.EnumElement.NotOutPub ? "" : "<a href=\"admin_publish.aspx?ac=PubContent&contentid=" + Eval("ContentId") + "&nodeid=" + Eval("NodeId") + "\">发布</a>" : "<a id=\"URL_" + Eval("ContentId") + "\" href=\"" + Eval("Url") + "\" target=\"_bank\">浏览<a>" : ""%>
                                    <a href="javascript:void(0);" onclick="doing('del',<%#Eval("ContentId")%>)">删除</a>                            
                        </td>
                        <td class="align_c">
                            <%#Convert.ToInt32(Eval("Type")) == (int)TRPOP.Common.LinkType.EnumElement.VirtualLink ? "<font color=\"#AAAAAA\">虚</font>" : Convert.ToInt32(Eval("Type")) == (int)TRPOP.Common.LinkType.EnumElement.IndexLink ? "<font color=\"blue\">索</font>" : "实"%>
                        </td>
                    </tr>
                </ItemTemplate>
            </cms:Repeater>
        </tbody>
    </table>
    <!--操作-->
    <table class="table_operator">
        <tr class="tr_operator">
            <td>
                <input type="checkbox" name="chkall" value="on" onclick="setCheckAll(this)" id="chkall" />
                <label for="chkall">
                    全选</label>&nbsp;&nbsp;
                <select name="actionMap" id="actionMap">
                    <%if (m_NodeInfo.ContentPubTypeId != (int)TRPOP.Common.ContentPubType.EnumElement.NotOutPub)
                      { %>
                    <option value="RePubContent">更新</option>
                  <option value="PubContent">发布</option>
                    <option value="unpublish">取消发布</option>
                   <%-- <option value="tempUnPublish">临时取消发布</option>--%>
                    <%} %>                         
                    <option value="del">删除</option>
                    <option value="destroy">永久删除</option>
                    <option value="createLink">创建虚链接</option>
                    <option value="createIndexLink">创建索引链接</option>                      
                </select>
                <input type="button" value="执行" class="button_style" onclick="going();" />
            </td>
            <td class="align_r">
                <div class="hide"><input type="button" value="显示" class="button_style" onclick="doing('offset',0);" />
                <input type="text" size="7" value="15" id="offset" name="offset" /></div>
                条记录
            </td>
        </tr>
        <tr class="tr_publish hide" >
            <td colspan="2">
                <cms:TextBox runat="server" ID="txtDate" onclick="javascript:return new Calendar.display(this.id,event);"
                    Width="100px" />
                <cms:DropDownList runat="server" ID="ddlHour" />
                时
                <cms:DropDownList runat="server" ID="ddlMinute" />
                分
                <cms:DropDownList runat="server" ID="ddlSecond" />
                秒                
                <input type="button" id="btplan" value="发布计划" onclick="doing('plan')" />
            </td>
        </tr>
        <tr class="tr_pager">
            <td colspan="2">               
                <cms:PagerGet ID="Pager" runat="server" />
            </td>
        </tr>
    </table>
    <table class="table_form">   
    <tr  class="tr_btn hide">
        <td class="align_c"  height="30">注：文章按照“发布状态->置顶->发布日期->文章排序权重”的优先顺序进行排序</td>
    </tr>
    </table>
    </form>
    <script language="javascript" type="text/javascript">
        $(document).ready(function() {
                bind();
                $("#offset").val(<%=Pager.PageSize  %>);
               
        });
    </script>
</body>
</html>
